package com.miqtech.master.wyrecorder.common;

import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;

/**
 * Created by xiaoyi on 2016/8/22.
 */
public abstract class BaseRecycleViewAdapter extends RecyclerView.Adapter {
    protected Context mContext;
    protected LayoutInflater mInflater;

    public BaseRecycleViewAdapter(Context mContext) {
        this.mContext = mContext;
        mInflater = LayoutInflater.from(mContext);
    }

    public BaseRecycleViewAdapter() {
    }

    protected RecycleViewItemClickListener mItemClickListener;

    public void setOnItemClickListener(RecycleViewItemClickListener listener) {
        mItemClickListener = listener;
    }
}
